﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Model;

namespace PersonalHealth.Data.Model
{
    public class Task : SynchronizeItem
    {
        public int TaskTypeId { get; set; }
        public int UserId { get; set; }
        public string Title { get; set; }
        public string Text { get; set; }


        public virtual User User { get; set; }

        public virtual TaskType TaskType
        {
            get
            {
                taskType = (TaskType)TaskTypeId;
                return taskType;
            }
            set
            {
                TaskTypeId = (int)value;
                taskType = value;
            }
        }

        private TaskType taskType;
    }
}
